.class Lcom/waiqin365/lightapp/returngoods/a/b;
.super Ljava/lang/Object;

# interfaces
.implements Landroid/view/View$OnClickListener;


# instance fields
.field final synthetic a:Landroid/widget/TextView;

.field final synthetic b:Landroid/widget/CheckBox;

.field final synthetic c:Lcom/waiqin365/lightapp/returngoods/a/a;


# direct methods
.method constructor <init>(Lcom/waiqin365/lightapp/returngoods/a/a;Landroid/widget/TextView;Landroid/widget/CheckBox;)V
    .locals 0

    iput-object p1, p0, Lcom/waiqin365/lightapp/returngoods/a/b;->c:Lcom/waiqin365/lightapp/returngoods/a/a;

    iput-object p2, p0, Lcom/waiqin365/lightapp/returngoods/a/b;->a:Landroid/widget/TextView;

    iput-object p3, p0, Lcom/waiqin365/lightapp/returngoods/a/b;->b:Landroid/widget/CheckBox;

    invoke-direct {p0}, Ljava/lang/Object;-><init>()V

    return-void
.end method


# virtual methods
.method public onClick(Landroid/view/View;)V
    .locals 6

    iget-object v0, p0, Lcom/waiqin365/lightapp/returngoods/a/b;->a:Landroid/widget/TextView;

    invoke-virtual {v0}, Landroid/widget/TextView;->getTag()Ljava/lang/Object;

    move-result-object v0

    check-cast v0, Lcom/waiqin365/base/db/offlinedata/s;

    iget-object v1, p0, Lcom/waiqin365/lightapp/returngoods/a/b;->b:Landroid/widget/CheckBox;

    invoke-virtual {v1}, Landroid/widget/CheckBox;->getTag()Ljava/lang/Object;

    move-result-object v1

    check-cast v1, Lcom/waiqin365/lightapp/product/d/d;

    new-instance v2, Lcom/waiqin365/base/db/jxccache/g;

    invoke-direct {v2}, Lcom/waiqin365/base/db/jxccache/g;-><init>()V

    invoke-virtual {v1}, Lcom/waiqin365/lightapp/product/d/d;->b()Ljava/lang/String;

    move-result-object v3

    invoke-virtual {v2, v3}, Lcom/waiqin365/base/db/jxccache/g;->a(Ljava/lang/String;)V

    invoke-virtual {v1}, Lcom/waiqin365/lightapp/product/d/d;->w()Ljava/lang/Boolean;

    move-result-object v3

    invoke-virtual {v2, v3}, Lcom/waiqin365/base/db/jxccache/g;->f(Ljava/lang/Boolean;)V

    invoke-virtual {v1}, Lcom/waiqin365/lightapp/product/d/d;->c()Ljava/lang/String;

    move-result-object v3

    invoke-virtual {v2, v3}, Lcom/waiqin365/base/db/jxccache/g;->b(Ljava/lang/String;)V

    if-nez v0, :cond_0

    iget-object v0, p0, Lcom/waiqin365/lightapp/returngoods/a/b;->c:Lcom/waiqin365/lightapp/returngoods/a/a;

    invoke-virtual {v0}, Lcom/waiqin365/lightapp/returngoods/a/a;->a()Landroid/content/Context;

    move-result-object v0

    invoke-static {v0}, Lcom/waiqin365/base/db/offlinedata/w;->a(Landroid/content/Context;)Lcom/waiqin365/base/db/offlinedata/w;

    move-result-object v0

    invoke-virtual {v2}, Lcom/waiqin365/base/db/jxccache/g;->b()Ljava/lang/String;

    move-result-object v3

    invoke-virtual {v0, v3}, Lcom/waiqin365/base/db/offlinedata/w;->f(Ljava/lang/String;)Lcom/waiqin365/base/db/offlinedata/s;

    move-result-object v0

    :cond_0
    invoke-virtual {v0}, Lcom/waiqin365/base/db/offlinedata/s;->c()Ljava/lang/String;

    move-result-object v3

    invoke-virtual {v2, v3}, Lcom/waiqin365/base/db/jxccache/g;->f(Ljava/lang/String;)V

    invoke-virtual {v0}, Lcom/waiqin365/base/db/offlinedata/s;->a()Ljava/lang/String;

    move-result-object v0

    invoke-virtual {v2, v0}, Lcom/waiqin365/base/db/jxccache/g;->e(Ljava/lang/String;)V

    iget-object v0, v1, Lcom/waiqin365/lightapp/product/d/d;->m:Ljava/lang/String;

    const-wide/16 v4, 0x0

    invoke-static {v0, v4, v5}, Lcom/fiberhome/gaea/client/d/k;->a(Ljava/lang/String;D)D

    move-result-wide v4

    invoke-static {v4, v5}, Ljava/lang/Double;->valueOf(D)Ljava/lang/Double;

    move-result-object v0

    invoke-virtual {v2, v0}, Lcom/waiqin365/base/db/jxccache/g;->b(Ljava/lang/Double;)V

    invoke-virtual {v1}, Lcom/waiqin365/lightapp/product/d/d;->f()Ljava/lang/Double;

    move-result-object v0

    invoke-virtual {v2, v0}, Lcom/waiqin365/base/db/jxccache/g;->a(Ljava/lang/Double;)V

    iget-object v0, p0, Lcom/waiqin365/lightapp/returngoods/a/b;->c:Lcom/waiqin365/lightapp/returngoods/a/a;

    invoke-virtual {v2}, Lcom/waiqin365/base/db/jxccache/g;->c()Ljava/lang/String;

    move-result-object v1

    invoke-virtual {v0, v1}, Lcom/waiqin365/lightapp/returngoods/a/a;->a(Ljava/lang/String;)Lcom/waiqin365/base/db/jxccache/g;

    move-result-object v0

    if-eqz v0, :cond_1

    iget-object v0, p0, Lcom/waiqin365/lightapp/returngoods/a/b;->c:Lcom/waiqin365/lightapp/returngoods/a/a;

    invoke-virtual {v2}, Lcom/waiqin365/base/db/jxccache/g;->c()Ljava/lang/String;

    move-result-object v1

    invoke-virtual {v0, v1}, Lcom/waiqin365/lightapp/returngoods/a/a;->b(Ljava/lang/String;)V

    :goto_0
    iget-object v0, p0, Lcom/waiqin365/lightapp/returngoods/a/b;->c:Lcom/waiqin365/lightapp/returngoods/a/a;

    invoke-virtual {v0}, Lcom/waiqin365/lightapp/returngoods/a/a;->notifyDataSetChanged()V

    return-void

    :cond_1
    iget-object v0, p0, Lcom/waiqin365/lightapp/returngoods/a/b;->c:Lcom/waiqin365/lightapp/returngoods/a/a;

    invoke-virtual {v0}, Lcom/waiqin365/lightapp/returngoods/a/a;->c()Ljava/util/List;

    move-result-object v0

    invoke-interface {v0, v2}, Ljava/util/List;->add(Ljava/lang/Object;)Z

    goto :goto_0
.end method
